#ifndef _KB_H
#define _KB_H

#include "video.h"
#include "util.h"

/* bitmask for the shift keys, etc. */
#define SHIFT 		0x01
#define CTRL 		0x02
#define ALT 		0x04
#define CAPS 		0x08
#define SCROLL 	0x10
#define NUM 		0x20

#define LEFT_SHIFT		0x2A
#define RIGHT_SHIFT	0x36
#define LEFT_CTRL		0x1D
#define RIGHT_CTRL		0x1D
#define LEFT_ALT		0x38
#define RIGHT_ALT		0x38
#define F1			0x3B
#define F2			0x3C
#define F3			0x3D
#define F4			0x3E
#define F5			0x3F
#define F6			0x40
#define F7			0x41
#define F8			0x42
#define F9			0x43
#define F10			0x44
#define F11			0x45
#define F12			0x46
#define BACKSPACE		0x0E
#define DELETE		0x53
#define UP			0x48
#define LEFT			0x4B
#define RIGHT			0x4D
#define DOWN			0x50
#define KBD_BUF		64

void keyboardInstall();

#endif

